// menu.js
import DashboardView from "@/views/dashboard/index.vue";
import CommodityManagement from "@/views/commodity/CommodityManagement.vue";
import OrderManagement from "@/views/order/OrderManagement.vue";
import UserManagement from "@/views/user/UserManagement.vue";

export const layoutMenus = [
	{
		path: "/dashboard",
		name: "dashboard",
		component: DashboardView,
		meta: {
			label: "首页",
			icon: "i-Home",
		},
	},
	{
		path: "/commodity",
		name: "commodity",
		redirect: "/commodity/management",
		meta: {
			label: "商品",
			icon: "i-Commodity",
		},
		children: [
			{
				path: "management",
				name: "commodity-management",
				component: CommodityManagement,
				meta: {
					label: "商品管理",
					icon: "i-Shopping",
				},
			},
		],
	},
	{
		path: "/order",
		name: "order",
		redirect: "/order/management",
		meta: {
			label: "订单",
			icon: "i-Order",
		},
		children: [
			{
				path: "management",
				name: "order-management",
				component: OrderManagement,
				meta: {
					label: "订单管理",
					icon: "i-TransactionOrder",
				},
			},
		],
	},
	{
		path: "/user",
		name: "user",
		redirect: "/user/management",
		meta: {
			label: "用户",
			icon: "i-People",
		},
		children: [
			{
				path: "management",
				name: "user-management",
				component: UserManagement,
				meta: {
					label: "用户管理",
					icon: "i-EveryUser",
				},
			},
		],
	},
];
export default layoutMenus;
